package com.cuhk.gulimall.member.dao;

import com.cuhk.gulimall.member.entity.MemberEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员
 * 
 * @author chenyujing
 * @email torchsam@aliyun.com
 * @date 2024-06-10 14:39:46
 */
@Mapper
public interface MemberDao extends BaseMapper<MemberEntity> {
	Integer selectByUsername(@Param("username") String username);
    Integer selectByMobile(@Param("mobile") String mobile);

    MemberEntity selectByNameOrMobile(@Param("name") String name);
}
